<template>
  <div class="headerTop">
    <van-icon name="service" size="0.48rem" color="#999" />{{ name
    }}<van-icon name="search" size="0.48rem" color="#999" @click="goSearch" />
  </div>
</template>

<script setup>
import { defineProps } from "vue";
import { useRouter } from "vue-router";
defineProps(["name"]);
const router = useRouter();
const goSearch = () => {
  router.push("/search");
};
</script>

<style scoped>
.headerTop {
  width: 100%;
  height: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  position: fixed;
  top: 0;
  z-index: 100;
  padding: 0 0.53333rem;
  box-sizing: border-box;
  font-size: 0.32rem;
  border-bottom: 0.5px solid #dedede;
}
</style>
